/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dungeonsolver.controller;

import java.awt.Point;
//import josx.rcxcomm.*;
import java.io.*;
import java.util.Vector;

/**
 *
 * @author TimotiusNC
 */
public class LejosWriter {
    private LejosWriter(){

    }

    public static LejosWriter instance() {
        if (m_instance == null)
            m_instance = new LejosWriter();

        return m_instance;
    }

    public void sendPathToLejos(Vector<Point> paths) {
        /*try {
            RCXPort port = new RCXPort();
            OutputStream out = port.getOutputStream();

            for(Point path : paths) {
                out.write(path.x);
                out.write(path.y);
            }
        } catch(Exception exc) {
              //exc.printStackTrace();
        }*/
    }

    private static LejosWriter m_instance;
}
